diff options
| author | zephex <[email protected]> | 2024-04-20 13:39:39 +0530 |
|---|---|---|
| committer | zephex <[email protected]> | 2024-04-20 13:39:39 +0530 |
| commit | 25537a093f96831dd4bec210c18bd808d8db30f2 (patch) | |
| tree | 22e39ab2dda04d08e74490b879305881bac1e3bd /src/app/manga/[title] | |
| parent | idk whats happening (diff) | |
| parent | removed image from homepage (diff) | |
| download | dramalama-25537a093f96831dd4bec210c18bd808d8db30f2.tar.xz dramalama-25537a093f96831dd4bec210c18bd808d8db30f2.zip | |
somethign somethign
Diffstat (limited to 'src/app/manga/[title]')
| -rw-r--r-- | src/app/manga/[title]/[id]/[read]/currentReading.jsx | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/app/manga/[title]/[id]/[read]/currentReading.jsx b/src/app/manga/[title]/[id]/[read]/currentReading.jsx deleted file mode 100644 index 5205ea9..0000000 --- a/src/app/manga/[title]/[id]/[read]/currentReading.jsx +++ /dev/null @@ -1,34 +0,0 @@ -"use client";
-
-import styles from "./read.module.css";
-import { useEffect } from "react";
-
-function get_current_info(title) {
- let req = {};
-
- useEffect(() => {
- const data = JSON.parse(localStorage.getItem("mangaData"));
- data.watchHis.forEach((element) => {
- if (element.title === title) {
- req.chapter = element.chapter;
- req.volume = element.volume;
- }
- });
- }, []);
-
- return req || false;
-}
-
-export default function Current({ name: title }) {
- let data = get_current_info(title);
- if (!data) {
- return;
- }
-
- return (
- <section className={styles.CurrentMain}>
- <p className={styles.CurrentChapter}>{data.chapter}</p>
- <p className={styles.CurrentVolume}>{data.volume}</p>
- </section>
- );
-}
|